package top.heathylife.gateway.common.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author GaoZexi
 * @datetime 2020/3/30 10:42
 */
@Data
@Accessors(chain = true)
@TableName("gateway_account")
@ApiModel("凭证管理")
public class GatewayAccountPo extends BaseEntity implements Serializable {
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;
    @ApiModelProperty("自动生成的凭证")
    private String secret;
    @ApiModelProperty("存的某些第三方的帐号如token,key 加密串等信息 ")
    private String secretJson;
    @ApiModelProperty("存储账号配置的接口价格信息 ")
    private String apiPriceJson;
    //@ApiModelProperty("是否失败立即返回,此状态由后端处理,通过帐号测试进行处理")
    //private Boolean type;
    @ApiModelProperty("凭证名称(数据产品的名称)")
    private String secretName;
    @ApiModelProperty("服务商简称")
    @TableField("system_short_name")
    private String shortName;
    @TableField("env")
    private String env;
    @ApiModelProperty("aes加密key")
    private String aesKey;
    @ApiModelProperty("是否启用中 true->启用;false->禁用")
    private Boolean status;

}
